package com.ninong.ker.common.oss.client;

import io.minio.MinioClient;
import io.minio.errors.InvalidEndpointException;
import io.minio.errors.InvalidPortException;

/**
 * @author 鸠摩智 初始化TosClient
 */
public class CosClientFactory {

	public static MinioClient createTosClient(String accessKeySecret, String accessKeyId, String endpoint)
			throws InvalidEndpointException, InvalidPortException {
		return MinioClient.builder().endpoint(endpoint)
				.credentials(accessKeyId, accessKeySecret).build();
	}
}
